@import "../../styles/mixin.less";

.blog-detail{
  // min-height: calc(100vh - 80px);
  padding:30px 20px;
  div,
  h1,
  h2,
  h3,
  h4,
  h5,
  h6,
  dl,
  dt,
  dd,
  ul,
  ol,
  li,
  pre,
  form,
  fieldset,
  input,
  p,
  blockquote,
  div,
  th,
  td {
    font-weight: revert;
    margin: revert;
    box-sizing: revert;
  }
}


.blog-detail{
  position:relative;
  border-radius: var(--app-radius);
  .blog-tool{
    position:fixed;
    // left:-60px;
    margin-left: -80px;
    top:120px;
    .readed,.thumbs,.share{
      position: relative;
      margin-bottom: 20px;
      width: 45px;
      height: 45px;
      background-color: var(--app-bg-color);
      background-position: 50%;
      background-repeat: no-repeat;
      border-radius: 50%;
      box-shadow: 0 2px 4px 0 rgba(0 ,0 ,0 , 0.04);
      cursor: pointer;
      text-align: center;
      line-height: 48px;
      font-size: 18px;
    }
    .share{
      >.code{
        width:100px;
        height:100px;
        display: none;
        background:var(--app-bg-color);
        box-shadow: var(--app-shadow);
      }
    }
    .share:hover .code{
      display: block;
    }
    .readed,.thumbs{
      &::after{
        content: attr(data-badge);
        position: absolute;
        top: 0;
        left: 75%;
        height: 17px;
        line-height: 17px;
        padding: 0 5px;
        border-radius: 9px;
        font-size: 11px;
        text-align: center;
        white-space: nowrap;
        background-color: #c2c8d1;
        color: #fff;
      }
    }
    .active{
      color:var(--app-hight-color);
      &::after{
        background-color: var(--app-hight-color);
      }
    }
  }

  .blog-front{
    width:100%;
    height:48px;
    margin:10px 0 65px 0;
    .blog-title{
      font-size: 36px;
      font-weight: 900;
    }
    .blog-time{
      width:250px;
      margin-top:20px;
      justify-content: space-between;
      .flex();
    }
    .blog-createtime{
      letter-spacing: 1px;
      font-size: 14px;
      color: #8a919f;
      margin-top: 5px;
      line-height: 22px;
    }
  }

  .blog-tool-mobile{
    display:none;
    width:100%;
    height:48px;
    background:var(--app-bg-color);
    position:fixed;
    bottom:0;
    left:0;
    box-shadow: var(--app-shadow);
    .readed,.thumbs,.share{
      width:50%;
      text-align: center;
      cursor: pointer;
      .icon{
        margin-right: 10px;
      }
    }
    .active{
      color:var(--app-hight-color);
    }
  }

  .blog-end{
    height:80px;
    padding:10px;
    background:rgba(2, 2, 2, 0.05);
    display: flex;
    justify-content: space-between;
    flex-flow: column nowrap;
    color:#000;
    font-size: 14px;
    .end-autor,.end-time{
      color:#8a919f;
    }
  }

  @media only screen and (max-width: 768px) {
    .blog-tool{
      display:none!important;
    }
    .blog-tool-mobile{
      display:flex!important;
      align-items:center;
      justify-content:space-between;
    }
  }
}

@media only screen and (max-width: 768px) {
  .blog-detail{
    width:100vw!important;
    padding: 30px 20px 78px 20px!important;
  }
}